<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ReadCurrentArticles.aspx.vb" Inherits="ReadCurrentArticles" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    <asp:Repeater ID="Repeater2" runat="server" DataSourceID="ObjectDataSource1">
        <ItemTemplate>
            <div class="post">
                <h2 class="articletitle"><span><%# Eval("Title")%></span></h2>
			    <h3 class="date">Posted On: <%#Eval("PostDate")%></h3>
			    <h2 class="user">Posted By: <%#Eval("UserID")%></h2>
			        <div class="story">
				        <p><%#Eval("Text")%></p>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# String.Format("~/ReadComments.aspx?ArticleID={0}", Eval("ArticleID")) %>'>Read Comments</asp:HyperLink>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# String.Format("~/AddComment.aspx?ArticleID={0}", Eval("ArticleID")) %>'>Add Comment</asp:HyperLink>
			        </div>
            </div>
        </ItemTemplate>
    </asp:Repeater>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetCurrentArticles"
        TypeName="ArticleObj"></asp:ObjectDataSource>

</asp:Content>

